// 个人信息问卷配置文件
export const personalInfoConfig = {
  // 问卷基本信息
  title: '个人信息登记表',
  subtitle: '请如实填写您的个人信息',
  description: '用于医疗评估和健康管理的个人信息收集',
  instruction: '请根据实际情况填写以下信息，所有信息将严格保密，仅用于医疗评估和健康管理目的。',
  version: '1.0.0',
  
  // 表单分组配置
  sections: {
    basicInfo: {
      title: '基本信息',
      fields: [
        {
          name: 'patientName',
          label: '姓名',
          type: 'text',
          required: false,
          placeholder: '请输入真实姓名（可选）'
        },
        {
          name: 'idCard',
          label: '身份证号',
          type: 'text',
          required: false,
          placeholder: '请输入18位身份证号码（可选）'
        },
        {
          name: 'age',
          label: '年龄',
          type: 'number',
          required: false,
          placeholder: '请输入年龄（可选）',
          min: 0,
          max: 150
        },
        {
          name: 'gender',
          label: '性别',
          type: 'radio',
          required: false,
          options: [
            { value: 'male', label: '男性' },
            { value: 'female', label: '女性' },
            { value: 'other', label: '其他' }
          ]
        },
        {
          name: 'birthDate',
          label: '出生日期',
          type: 'date',
          required: false,
          placeholder: '请选择出生日期（可选）'
        },
        {
          name: 'phone',
          label: '联系电话',
          type: 'tel',
          required: false,
          placeholder: '请输入联系电话（可选）'
        },
        {
          name: 'email',
          label: '电子邮箱',
          type: 'email',
          required: false,
          placeholder: '请输入电子邮箱（可选）'
        },
        {
          name: 'address',
          label: '居住地址',
          type: 'textarea',
          required: false,
          placeholder: '请输入详细居住地址（可选）',
          rows: 2
        },
        {
          name: 'recordTime',
          label: '登记时间',
          type: 'datetime-local',
          required: false
        }
      ]
    },
    socialInfo: {
      title: '社会信息',
      fields: [
        {
          name: 'maritalStatus',
          label: '婚姻状况',
          type: 'radio',
          required: false,
          options: [
            { value: 'single', label: '未婚' },
            { value: 'married', label: '已婚' },
            { value: 'divorced', label: '离异' },
            { value: 'widowed', label: '丧偶' },
            { value: 'other', label: '其他' }
          ]
        },
        {
          name: 'education',
          label: '教育程度',
          type: 'radio',
          required: false,
          options: [
            { value: 'illiterate', label: '文盲' },
            { value: 'primary', label: '小学' },
            { value: 'middle', label: '初中' },
            { value: 'high', label: '高中/中专' },
            { value: 'college', label: '大专' },
            { value: 'university', label: '本科' },
            { value: 'graduate', label: '研究生及以上' }
          ]
        },
        {
          name: 'occupation',
          label: '职业',
          type: 'text',
          required: false,
          placeholder: '请输入职业（可选）'
        },
        {
          name: 'retired',
          label: '是否退休',
          type: 'radio',
          required: false,
          options: [
            { value: 'yes', label: '是' },
            { value: 'no', label: '否' }
          ]
        }
      ]
    },
    healthInfo: {
      title: '健康信息',
      fields: [
        {
          name: 'height',
          label: '身高 (cm)',
          type: 'number',
          required: false,
          placeholder: '请输入身高',
          min: 50,
          max: 250
        },
        {
          name: 'weight',
          label: '体重 (kg)',
          type: 'number',
          required: false,
          placeholder: '请输入体重',
          min: 20,
          max: 300
        },
        {
          name: 'bloodType',
          label: '血型',
          type: 'radio',
          required: false,
          options: [
            { value: 'A', label: 'A型' },
            { value: 'B', label: 'B型' },
            { value: 'AB', label: 'AB型' },
            { value: 'O', label: 'O型' },
            { value: 'unknown', label: '未知' }
          ]
        },
        {
          name: 'allergies',
          label: '过敏史',
          type: 'textarea',
          required: false,
          placeholder: '请输入过敏史，如药物过敏、食物过敏等（可选）',
          rows: 2
        },
        {
          name: 'medicalHistory',
          label: '既往病史',
          type: 'textarea',
          required: false,
          placeholder: '请输入既往病史，如高血压、糖尿病等（可选）',
          rows: 3
        },
        {
          name: 'currentMedications',
          label: '当前用药',
          type: 'textarea',
          required: false,
          placeholder: '请输入当前正在服用的药物（可选）',
          rows: 2
        }
      ]
    },
    contactInfo: {
      title: '紧急联系人信息',
      fields: [
        {
          name: 'emergencyContactName',
          label: '紧急联系人姓名',
          type: 'text',
          required: false,
          placeholder: '请输入紧急联系人姓名（可选）'
        },
        {
          name: 'emergencyContactRelation',
          label: '与本人关系',
          type: 'text',
          required: false,
          placeholder: '请输入关系，如：配偶、子女、父母等（可选）'
        },
        {
          name: 'emergencyContactPhone',
          label: '紧急联系人电话',
          type: 'tel',
          required: false,
          placeholder: '请输入紧急联系人电话（可选）'
        }
      ]
    },
    remarks: {
      title: '备注信息',
      fields: [
        {
          name: 'remarks',
          label: '备注',
          type: 'textarea',
          required: false,
          placeholder: '请输入其他需要说明的信息（可选）',
          rows: 3
        }
      ]
    }
  },
  
  // 界面文本配置
  ui: {
    buttons: {
      previous: '上一步',
      next: '下一步',
      submit: '提交登记',
      export: '导出结果',
      restart: '重新登记',
      backToHome: '返回首页',
      home: '返回首页',
      settings: '设置'
    },
    messages: {
      validationError: '请完成所有必填项目',
      submitSuccess: '信息登记成功！',
      submitError: '登记失败，请重试',
      exportSuccess: '结果导出成功！',
      exportError: '导出失败，请重试'
    },
    placeholders: {
      name: '请输入姓名',
      age: '请输入年龄',
      phone: '请输入联系电话',
      textarea: '请输入详细描述'
    }
  },
  
  // 设置页面配置
  settings: {
    title: '设置',
    description: '个人信息登记表设置选项'
  },

  // 导出设置
  export: {
    filename: '个人信息登记结果',
    includeCharts: false,
    includeRecommendations: false,
    title: '导出结果'
  }
};

export default personalInfoConfig;

